import Vue from "vue";
import Router from "vue-router";
import HomeContainer from './views/HomeContainer.vue';
import SearchContainer from './views/SearchContainer.vue';
import MemberContainer from './views/MemberContainer.vue';
import ShopCatContainer from './views/ShopCatContainer.vue';
import NewsListContainer from './views/NewsListContainer.vue'


Vue.use(Router);

export default new Router({
  routes: [
    {
      path:'/',
      redirect:'/home'
    }
    ,{
      path:'/home',
      component:HomeContainer
    },
    {
      path:'/search',
      component:SearchContainer
    },
    {
      path:'/member',
      component: MemberContainer
    },
    {
      path:'/shopcat',
      component: ShopCatContainer
    },
    {
      path:'/home/newslist',
      component:NewsListContainer
    }

  ],
  linkActiveClass: 'mui-active'
});
